<include file="Public:header" />
<load href="__JS__/upload/uploadify.css" />
<load href="__JS__/swfobject.js" />
<script type="text/javascript" src="__JS__/jquery.uploadify.v2.1.4.min.js"></script> 
<script type="text/javascript" src="__JS__/jianfanzhuanhuan.js"></script>
<div class="content">
<!-----------------------------------------内容开始--------------------------------------------------->
<div class="infoBox">
<form name="form" action="{:U('dotou_xuan')}" method="post" onsubmit="return checkform();">
<input type="hidden" name="id" value="{$id}" />


<table width="100%" border="0" cellpadding="0" cellspacing="0" id="basic">

<tr>
	<td class="infoBoxTd">所属投票主题：</td>
	<td colspan="2">
		<select name="tid" >
			<option value="0">请选择</option>
			<volist name="tou" id="tou">
				<option value="{$tou.id}" <eq name="tou.id" value="$tid">selected</eq> >{$tou.name}</option>
			</volist>
		</select>

	</td>
</tr>


<tr>
	<td class="infoBoxTd">所属投票事项：</td>
	<td colspan="2">
		<select name="sid" >
			<option value="0" >该主题下全部</option>
			<volist name="tous" id="tous">
				<option value="{$tous.id}" <eq name="tous.id" value="$sid">selected</eq> >{$tous.name}</option>
			</volist>
		</select>

	</td>
</tr>


<tr>
	<td class="infoBoxTd">投票选项：</td>
	<td colspan="2">
	<INPUT name="name" value="{$name}" class="formTitle xzzsinput" size="80" maxlength="150" onkeyup="word_count(150,this)" onblur="auto_save('name')" >您已输入<span class="fred ysrzs">0</span>字，还可输入<span class="fred syzs">150</span>字。
	<br />
	<a href="javascript:;" onclick="zhuanjft(this)" class="buttom" style="margin-top:5px;"  >自动转换简繁体</a>
	</td>
</tr>
<volist name="lang_name" id="lang_name">
<tr>
<td width="11%" class="infoBoxTd">投票选项（<span class="lang_name" lang_daihao="{$lang_name.nid}">{$lang_name.name}</span>）：</td>
<td colspan="2">
<input type="text" name="name{$lang_name.id}" value="{$lang_name.menu_name}" class="formTitle xzzsinput" size="80" maxlength="150" onkeyup="word_count(150,this)" onblur="auto_save('name{$lang_name.id}')" style="float:left;margin-right:10px;" />您已输入<span class="fred ysrzs">0</span>字，还可输入<span class="fred syzs">150</span>字。
<br />
<eq name="lang_name.nid" value="L01"> <a href="javascript:;" onclick="zhuanft(this)" class="buttom" style="margin-top:5px;"  >将简体转换为繁体</a></eq>
</td>
</tr>
</volist>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="infoBoxTd">&nbsp;</td>
<td align="left">
	<php>
	if(!$state){
	</php>
		<input type="submit" name="Button1" value="提交审核" class="formInput01" />
	<php>
	}else{
	</php>
		<input type="submit" name="Button1" value="保存" class="formInput01" />
	<php>
	}
	</php>
</td>
</tr>
</table>
</form>
</div>
<!-----------------------------------------内容结束--------------------------------------------------->
</div>
<script language="javascript">

//表单验证
function checkform(){
	var n = $('input[name="name"]').val();
	if(n == ''){
		ui.error('请输入投票选项');
		return false;
	}

}

</script>
    

<include file="Public:footer" />
